<template>
  <div class="dataOverview">
      <div
        class="data-item"
        v-for="(item,index) in dataOverview"
        :key="index"
        :style="{backgroundColor:item.color}"
      >
        <h3>{{item.value}}</h3>
        <p>{{item.title}}</p>
      </div>
    </div>
</template>

<script>
export default {
  data() {
    return {
      dataOverview: [
        { title: "组织总数", value: "38", color: "#0060B7" },
        { title: "学生登录总数", value: "21359", color: "#4586FF" },
        { title: "活动课程体系数", value: "9", color: "#FF8324" },
        { title: "活动总数", value: "139", color: "#00C2CC" },
        { title: "活动总报名人次", value: "18390", color: "#55CC80" },
        { title: "现场签到率", value: "6.5%", color: "#FF5E74" }
      ]
    };
  }
};
</script>

<style lang="scss" scoped>
.dataOverview {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  .data-item {
    width: 255px;
    height: 107px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    h3 {
      font-size: 34px;
      font-weight: bold;
      line-height: 34px;
      margin-bottom: 10px;
    }
    p {
      font-size: 23px;
      line-height: 24px;
      color: rgba($color: #fff, $alpha: 0.7);
    }
  }
  .data-item + .data-item {
    margin-left: 20px;
  }
}
</style>